package com.example.demo.controller.requests;

import com.example.demo.model.Drink;
import lombok.*;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Getter
@Setter
@ToString
public class NewOrderRequest {
    @NotBlank(message = "用户名不能为空")
    public String customer; //用户名称
    @NotNull
    @Length(min = 1, message = "至少选择一种饮品")
    public List<Integer> items; //饮品id
}
